//
//  UIPickerView+Helper.m
//  Btpin
//
//  Created by Vic on 2019/3/14.
//  Copyright © 2019 Vic. All rights reserved.
//

#import "UIPickerView+Helper.h"

@implementation UIPickerView (Helper)

- (void)clearSpearatorLine {
    //设置分割线的颜色
//    for(UIView *singleLine in pickerView.subviews) {
//        if (singleLine.frame.size.height < 1) {
//            singleLine.backgroundColor = COLOR_OF_CLEAR;
//        }
//    }
    [self.subviews enumerateObjectsUsingBlock:^(__kindof UIView * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        if (obj.frame.size.height < 1) {
            [obj setBackgroundColor:[UIColor clearColor]];
        }
    }];
}

@end
